package proxy.dynamicProxy.jdk;

public class Customer {
    public static void main(String[] args) {
        Man man = new Man();
        ProxyOne proxyOne = new ProxyOne(man);
        Person proxy = (Person)proxyOne.getProxy();

        proxy.happy();
        System.out.println("===============分割线============");

        ProxyTwo proxyTwo = new ProxyTwo(man);
        proxyTwo.run();
    }
}
